package com.duoec.magichour.core.exceptions;

/**
 * Created by ycoe on 17/6/25.
 */
public class BusinessException extends RuntimeException {
    private int code;

    public BusinessException(int code, String message, Throwable e) {
        super(message, e);
        this.code = code;
    }

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
